package cc.comac.mom.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.EquipRegularCheckWorkOrderItemService;
import cc.comac.mom.bean.EquipRegularCheckWorkOrderItem;
import cc.comac.mom.util.ResultBean;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping(value = "/EquipRegularCheckWorkOrderItem")
public class EquipRegularCheckWorkOrderItemController {

	@Autowired
	private EquipRegularCheckWorkOrderItemService equipRegularCheckWorkOrderItemService;
	
	@ApiOperation("执行")
	@RequestMapping("/planExecute")
	public ResultBean planExecute(@RequestBody EquipRegularCheckWorkOrderItem obj) {
		return equipRegularCheckWorkOrderItemService.planExecute(obj);
	}
	
	@ApiOperation("通过定检计划工单id获取子项信息")
	@RequestMapping("/selectByCondition")
	public ResultBean selectByCondition(@RequestBody EquipRegularCheckWorkOrderItem obj) {
		return equipRegularCheckWorkOrderItemService.selectByCondition(obj);
	}
}
